﻿using System;

namespace Yaml.Presentation.Tokens {
    public class FlowToken : Token{
        private int flowDepth;
        public FlowToken(Mark start, Mark end, int flowDepth)
            : base(start, end) {
            this.flowDepth = flowDepth;
        }

        /// <summary>
        /// The flow depth after this token
        /// </summary>
        public int FlowDepth { get { return flowDepth; } }

        public override String ToString() {
            return "#<" + this.GetType().Name + " flowDepth='" + flowDepth.ToString() + "' start=" + Start.ToString() + " end=" + End.ToString() + ">";
        }
    }
}
